package datamodel;

import communication.Parameter;
import communication.RestFulService;

public class ParameterHelper {
	public static boolean isLastParameter(Parameter parameter){
		RestFulService service = (RestFulService) parameter.eContainer();
		int index = service.getParameters().indexOf(parameter);
		if(index == service.getParameters().size() - 1)
			return true;
		else
			return false;
	}
}
